package love.yuanmeng.guetcoalsystem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import love.yuanmeng.guetcoalsystem.pojo.Message;
import love.yuanmeng.guetcoalsystem.vo.NewsAndPage;
import love.yuanmeng.guetcoalsystem.pojo.News;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface NewsService {
    boolean addNew(News news, MultipartFile file);
    boolean editNew(News news,MultipartFile file);
    IPage getNews(NewsAndPage newsAndPage);
    List<News> getRecent(News news);
    boolean editNewNullImg(News news);
    int deleNew(News news);

    boolean auditNews(News news, Message message);
}
